#ifndef DIALOGFILTER2_H
#define DIALOGFILTER2_H

#include <QComboBox>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLabel>
#include <QDialog>
#include <QGridLayout>
#include <QSet>
#include <textButton.h>
#include "llCombobox2.h"
#include "pcrState.h"
#include <QTableWidget>
#include <QHeaderView>
#include <QTableWidgetItem>



class PosiTable : public QTableWidget{

    Q_OBJECT
public:
    PosiTable(QWidget* parent=nullptr);
signals:
    void sigMouseRelease();
private:
    bool eventFilter(QObject*, QEvent*) override;

};



// 筛选弹窗
class DialogFilter2 : public QDialog
{
    Q_OBJECT
public:
    DialogFilter2(QWidget * parent=nullptr);
    void init(PCRState* state);
    void showEvent(QShowEvent *event = nullptr) override;

public slots:
    void on_yesClicked();
    void on_noClicked();

    void on_posiChanged();



private:

    PCRState*       pState = nullptr;

    QVBoxLayout*    _layout;

    QHBoxLayout*    _layout_combo;
    QHBoxLayout*    _layout_button;

    QPushButton*    _button_yes;
    QPushButton*    _button_no;
public:


    PosiTable*   _table_posi;

    QSet<QString>   posiList;




    LLComboBox2*                 _lcBox_name;
    LLComboBox2*                 _lcBox_type;


};

#endif // DIALOGFILTER2_H
